home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 2.iso
/
dist
/
fw_glimpse.idb
/
usr
/
freeware
/
src
/
glimpse-3.0
/
libtemplate
/
util
/
Makefile.sgi.z
/
Makefile.sgi
Wrap
Makefile
|
1997-09-09
|
954b
|
49 lines
#
# Makefile for the utilities source directory
#
# $Id: Makefile.in,v 1.6 1994/09/30 21:55:07 hardy Exp $
#
prefix = /usr/local/harvest
INSTALL_BINDIR = $(prefix)/bin
INSTALL_LIBDIR = $(prefix)/lib
INSTALL_MANDIR = $(prefix)/man
SHELL = /bin/sh
CC = cc
INSTALL = cp #install -c
INSTALL_BIN = ${INSTALL}
INSTALL_FILE = ${INSTALL} #-m 644
RANLIB = true
DEBUG = $(DEBUG_TOP) #-O #-g #-DDEBUG
INCLUDE = -I../include
CFLAGS = $(DEBUG) $(INCLUDE)
LIBFILE = libutil.a
LIBDIR = ../lib
OBJS = buffer.o host.o log.o strdup.o system.o strerror.o \
string.o xmalloc.o
all: $(LIBFILE) install-lib
ctags:
@ctags -w *.c
clean:
-rm -f core *.o $(LIBFILE) tags
#realclean: clean
# -rm -rf Makefile
install: install-lib
install-lib: $(LIBDIR)/$(LIBFILE)
$(LIBDIR)/$(LIBFILE): $(LIBFILE)
$(INSTALL_FILE) $(LIBFILE) $(LIBDIR)/$(LIBFILE)
$(RANLIB) $(LIBDIR)/$(LIBFILE)
$(LIBFILE): $(OBJS)
ar r $(LIBFILE) $(OBJS)
$(RANLIB) $(LIBFILE)